from App import create_app
from exts import db, migrate

app = create_app()

# 让Flask应用可以识别flask db命令
with app.app_context():
    # 导入模型以确保它们被注册到db
    from App.models import User

if __name__ == '__main__':
    app.run(debug=True)